package com.cw.mapper;

import com.cw.beans.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;
@Mapper
public class DeptMapperImpl implements DeptMapper{
    @Autowired
    private DeptMapper deptMapper;

    public Dept getDeptById(int id) {
        return deptMapper.getDeptById(id);
    }

    public List<Dept> getDeptList() {
        return  deptMapper.getDeptList();
    }

    public ArrayList<Dept> getDept() {
        return deptMapper.getDept();
    }

    public ArrayList<Dept> getAllDept() {
        return deptMapper.getAllDept();
    }
}
